import pymysql.cursors

# 连接数据库
conn = pymysql.Connect(
    host='47.94.130.233',
    port=3306,
    user='root',
    passwd='123456',
    db='training',
    charset='utf8',
)
print(conn)
